package com.xt.javabean;

/**
 * 实体类
 * 1. 必须所有成员都是私有的,并为每个成员都提供get和set方法
 * 2. 必须为类提供一个无参数构造器
 */
public class Student {
    private String name;
    private double score;

    public Student() {
    }

    public Student(String name, double score) {
        this.name = name;
        this.score = score;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getScore() {
        return score;
    }

    public void setScore(double score) {
        this.score = score;
    }
}
